home *** CD-ROM | disk | FTP | other *** search
/ Champak 123 / (Vol 123) Jan 13 2011.iso / Games / go-fishing.swf / scripts / DefineSprite_223 / frame_2 / DoAction.as
Text File  |  2011-01-13  |  475b  |  19 lines

  1. my_name = _target;
  2. direction = eval("/:choice_lorr");
  3. former_x = getProperty(my_name, _X);
  4. former_y = getProperty(my_name, _Y);
  5. speed = random("8") + "8";
  6. fishhook_width = getProperty("/ship/fishhook", _width) / "2";
  7. fish_width = "6";
  8. setProperty(my_name, _Y, random("130") + "285");
  9. if(direction == "2")
  10. {
  11.    setProperty(my_name, _X, random("50") + "600");
  12.    gotoAndPlay(15);
  13. }
  14. else if(direction == "1")
  15. {
  16.    gotoAndPlay(5);
  17. }
  18. turn_o = random("6") + "1";
  19.